import request from '../http/request'

export function login (data) {
  return request({
    url: '/api/user/login',
    method: 'post',
    data
  })
}

export function logout (data) {
  return request({
    url: '/api/user/logout',
    method: 'get',
    data
  })
}

export function getDataList (data) {
  return request({
    url: '/api/reinforce/reinforces',
    method: 'get',
    data
  })
}

export function createTask (data) {
  return request({
    url: '/api/reinforce/reinforces',
    method: 'post',
    data
  })
}
export function deleteTask (data) {
  return request({
    url: '/api/reinforce/reinforces',
    method: 'delete',
    data
  })
}

export function getTaskDetail (data) {
  return request({
    url: '/api/reinforce/result',
    method: 'get',
    data
  })
}


export function postTask (data) {
  return request({
    url: '/api/reinforce/result',
    method: 'post',
    data
  })
}

  
export function nameRepeats (data) {
  return request({
    url: '/api/reinforce/repeats',
    method: 'post',
    data
  })
}